package com.example.service.impl;

import com.example.dao.ScoreDetailDao;
import com.example.entity.ScoreDetail;
import com.example.service.ScoreDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class ScoreDetailServiceImpl implements ScoreDetailService {
    @Autowired
    private ScoreDetailDao scoreDetailDao;
    @Override
    public int insert(ScoreDetail scoreDetail) {
        return scoreDetailDao.insert(scoreDetail);
    }

    @Override
    public List<ScoreDetail> selectByUid(int uid) {
        return scoreDetailDao.selectByUid(uid);
    }

    @Override
    public String buy(int uid, int gid) {
        return scoreDetailDao.buy(uid,gid);
    }

    @Override
    public String exchange(int uid, int gid) {
        return scoreDetailDao.exchange(uid,gid);
    }
}
